import { axios } from '@/utils/request'

export function getSchoolInfo(id) {
  return axios({
    url: '/school/schools/' + id,
    method: 'post',
  })
}

export function changeSchool(params, id) {
  return axios({
    url: '/school/schools/' + id + '/update',
    method: 'post',
    data: params
  })
}
export function getSchoolWX(params) {
  return axios({
    url: '/school/schools/get-setting',
    method: 'post',
    data: params
  })
}


export function setSchoolWX(params) {
  return axios({
    url: '/school/schools/setting',
    method: 'post',
    data: params
  })
}

export function dowmLoadThing(id,params) {
  return axios({
    url: '/school/schools/'+id+'/make-materiel',
    method: 'post',
    data:params
  })
}
export function uploadTxt(params) {
  return axios({
    url: '/school/schools/upload-txt',
    method: 'post',
    data: params
  })
}

//支付设置提交
export function paySetting(params) {
  return axios({
    url: '/school/schools/pay-setting',
    method: 'post',
    data: params
  })
}
//支付设置获取
export function getPaySetting(params) {
  return axios({
    url: '/school/schools/pay-get-setting',
    method: 'post',
    data: params
  })
}
export function getAuthorized(params) {
  return axios({
    url: '/school/wechat-user/get-authorized-url',
    method: 'post',
    data: params
  })
}

export function setIndustry(params) {
  return axios({
    url: '/school/schools/setIndustry',
    method: 'post',
    data: params
  })
}